$(document).ready(function() {
	if($('.orderform-personal-info')) {
		function trim(str) {
			var	str = str.replace(/^\s\s*/, ''),
				ws = /\s/,
				i = str.length;
			while (ws.test(str.charAt(--i)));
			return str.slice(0, i + 1);
		}
	
		$('.orderform-personal-info input').each(function() {
			var defval = trim($(this).attr('value'));
			var _tmp = trim(defval.slice(-1) + defval.slice(0,1));
			// alert(_tmp);
			if(_tmp == '--' && $(':text')) {
				$(this).focus(function() {
					if($(this).attr('value') == defval) {
						$(this).attr('value', '');
					}
				});
				$(this).blur(function() {
					if(trim($(this).attr('value')) == '') {
						$(this).attr('value', defval);
					}
				});
			}
		});
	}
});