function defaultValue() {
	
	$('#firstName').each(function() {
	    var default_value = 'First Name';
	    $(this).focus(function() {
	        if(this.value == default_value) {
	            this.value = '';
	        }
	    });
	    $(this).blur(function() {
	        if(this.value == '') {
	            this.value = default_value;
	        }
	    });
	});
	
	$('#lastName').each(function() {
	    var default_value = 'Last Name';
	    $(this).focus(function() {
	        if(this.value == default_value) {
	            this.value = '';
	        }
	    });
	    $(this).blur(function() {
	        if(this.value == '') {
	            this.value = default_value;
	        }
	    });
	});
	
	$('#npiNumber').each(function() {
	    var default_value = 'National Provider Identification Number';
	    $(this).focus(function() {
	        if(this.value == default_value) {
	            this.value = '';
	        }
	    });
	    $(this).blur(function() {
	        if(this.value == '') {
	            this.value = default_value;
	        }
	    });
	});
	
	$('#email').each(function() {
	    var default_value = 'E-mail Address';
	    $(this).focus(function() {
	        if(this.value == default_value) {
	            this.value = '';
	        }
	    });
	    $(this).blur(function() {
	        if(this.value == '') {
	            this.value = default_value;
	        }
	    });
	});
}

function slDefaultValue() {
	if (document.getElementById("slLicense").value==''){
		document.getElementById("slLicense").value='State License Number';
	}
	$('#slLicense').each(function() {
	    var default_value = 'State License Number';
	    $(this).focus(function() {
	        if(this.value == default_value) {
	            this.value = '';
	        }
	    });
	    $(this).blur(function() {
	        if(this.value == '') {
	            this.value = default_value;
	        }
	    });
	});
}

function getRightFields(hcpType) {
	if (hcpType=='HCP') {
		show('hcpOnly');
		hide('notHcp');
	}else if (hcpType=='CGV' || hcpType=='PAT'){
		show('notHcp');
		hide('hcpOnly');
	}
}

function onloadCheck(){
	var pat = document.getElementById('userPat');
	var cgv = document.getElementById('userCgv');
	var hcp = document.getElementById('userHcp');
	if(pat.checked == true || cgv.checked == true) {
		userSelected = true;
		show('notHcp');
		hide('hcpOnly');
	}else if(hcp.checked == true) {
		show('hcpOnly');
		hide('notHcp');
	}else {
		pat.checked = true;
		show('notHcp');
		hide('hcpOnly');
	}
}

function show(id1)
	{	
		var obj = document.getElementById(id1);
		obj.style.display ="block";
	}
	
function hide(id1)
	{	
		var objj = document.getElementById(id1);
		objj.style.display ="none";
	}
	
	var ObjVar = null;
function popupWindow(strUrl) 
	{
		if (ObjVar == null || ObjVar.closed) {
			ObjVar = window.open(strUrl, "_blank", "top=0, left=0, location=1, toolbar=1, menubar=1, resizable=1, scrollbars=1, status=1, width=785, height=570");
		} else {
			ObjVar.focus();
	}
	}
	
		
		
		function popupWindow1(strUrl) 
	{
		
			window.open(strUrl, "_blank", "top=0, left=0, location=1, toolbar=1, menubar=1, resizable=1, scrollbars=1, status=1, width=785, height=570");
		
	}
function callDisclaimerExitSecure() {
		tb_show("", 'exit1_secure.html?KeepThis=true&TB_iframe=true&height=142&width=418&modal=true', false);
	}
	
	
	function callDisclaimerExit() {
		tb_show("", 'exit1.html?KeepThis=true&TB_iframe=true&height=142&width=418&modal=true', false);
	}	