function initvalue ()
{
	$('.initvalue').each(function () {
		$(this).attr('init', $(this).val());
		$(this).addClass('initoff');
		
		$(this).focus(function () {
			if($(this).attr('value') == $(this).attr('init')) {
				$(this).removeClass('initoff');
				$(this).attr('value', '');
			}
		});
		$(this).blur(function () {
			if($(this).attr('value') == '') {
				$(this).addClass('initoff');
				$(this).attr('value', $(this).attr('init'));
			}
		});
	});
}

$(document).ready(function () {
	$('.new-window').each(function () {
		$(this).attr('target', '_blank');
	});
	initvalue();
});