// JScript File

function submitSearchForm()
{
    var searchTerm = "ctl00_Navigation1_SearchText";
    if (validateSearchForm(searchTerm)) {
        window.location=window.root+'hcp/search_results.aspx?q='+document.getElementById(searchTerm).value;    
    }
    return false;
}

function exitSite(destination)
{
	openWin(window.root+'hcp/common/exit_site.aspx?url=' + destination ,'pop_up','width=580,height=615,scrollbars=auto, resizable=1');
}
function interstitial(destination)
{
	openWin(window.root+'hcp/common/interstitial.aspx?url=' + destination ,'pop_up','width=500,height=215,scrollbars=auto');
}
function openLeftNavWin(windowURL, windowName, windowFeatures) {
     winhandle = window.open(window.root + windowURL, windowName, windowFeatures ) ;
	 try {
	 	winhandle.focus();
	}
	catch(err) {
		alert("To view this information, please disable your popup blocker or add www.lantus.com to your safe list");
	}
}

function designationValidation(source, args)
{
    if ((document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_2_1').checked == false) && 
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_2_2').checked == false)&&
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_2_3').checked == false)&& 
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_2_4').checked == false)&& 
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_2_5').checked == false)&& 
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_2_6').checked == false)&& 
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_2_7').checked == false)&& 
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_2_8').checked == false)&& 
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_2_9').checked == false)&& 
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_2_10').checked == false)) {
            
            args.IsValid = false;    
            return;
         }else{
            args.IsValid = true;
            return;              
     }   
}
function specialtyValidation(source, args)
{       
    if ((document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_3_1').checked == false) && 
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_3_2').checked == false)&&
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_3_3').checked == false)&& 
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_3_4').checked == false)&& 
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_3_5').checked == false)&&             
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_3_7').checked == false)&&             
            (document.getElementById('ctl00_ContentPlaceHolder1_UserResponse_C_2_3_8').checked == false)) {
            
            args.IsValid = false;    
            return;
         }else{
            args.IsValid = true;
            return;              
     }   
}