<!-- Begin

    function addbookmark(bookmarkurl,bookmarktitle)
      {
      if (document.all)
      window.external.AddFavorite(bookmarkurl,bookmarktitle)
      }

    function printWindow()
      {
      bV = parseInt(navigator.appVersion);
      if (bV >= 4) window.print();
      }

    function popUp(URL,wd,ht) 
    {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" +wd+",height="+ht+"');");
    }

    function confirmDelete(delWhat) {
    
    	var confirmIt = confirm("Are you sure you want to delete \n\n" + delWhat )
    
                if (confirmIt==true)
                {
                return true
                }
                else
                {
                return false
                }
    
                                    }
                                    

	function doAddress() {
	
		var add = document.googleDirections.add.value;
		var ct = document.googleDirections.ct.value;
		var st = document.googleDirections.st.value;
		var zp = document.googleDirections.zp.value;
		
		var gogAdrs = add + ", " + ct + ", " + st + " " + zp;
		
		document.googleDirections.saddr.value = gogAdrs;
		
		 document.googleDirections.submit();
	}                                    

	function validateForm(){
		
		at = contact.email.value.indexOf("@")
		dot = contact.email.value.indexOf(".")				

		if(contact.c_name.value.length<5){
		alert('Please provide your name.')
		contact.c_name.focus()
		return false
					}
					
		if (at==-1)	{
		alert('Please enter a valid email address.')
		contact.email.focus()
		return false
					}
							
		if (dot==-1){
		alert('Please enter a valid email address.')
		contact.email.focus()
		return false
					}
		
		if(contact.salon.value=='PleaseSelect'){
		alert('Please select a salon.')
		contact.salon.focus()
		return false
					}	
						
		return true
	}  
	
	function validateApp(formName){
		
		at = formName.email.value.indexOf("@")
		dot = formName.email.value.indexOf(".")

		var blnIsInError = false 					

		if (at==-1){blnIsInError = true}
		
		if (dot==-1){blnIsInError = true}
		
		if(formName.usrName.value.length<7){blnIsInError = true}											
		
		if(formName.email.value.length==0){blnIsInError = true}
		if(formName.phoneDay.value.length==0){blnIsInError = true}
		
		if(formName.liquidCapital.value=='SelectOne'){blnIsInError = true}
		if(formName.networth.value.length==0){blnIsInError = true}
		if(formName.timeframe.value=='SelectOne'){blnIsInError = true}
		if(formName.geography.value=='SelectOne'){blnIsInError = true}
		if(formName.howheard.value=='SelectOne'){blnIsInError = true}							
						
		if(blnIsInError)							

		{
		alert("Please verify that all required information has been filled in.\n\nRequired fields are indicated with a red Asterisk")

		return false
		}
		return true
	}    		

	function gotoLink(control)
		{				
	var selectedValue = control[control.selectedIndex].value
	if (selectedValue==4){window.location.href = 'add-new-media-link.asp'}
		}

	function validateEmployment(){
		
		at = employment.email.value.indexOf("@")
		dot = employment.email.value.indexOf(".")

		if(employment.c_name.value.length<5){
		alert('Please provide your full name.')
		employment.c_name.focus()
		return false
					}
		if(employment.telephone.value.length<10){
		alert('Please provide your telephone number, including area code.')
		employment.telephone.focus()
		return false
					}
		
		if (at==-1)	{
		alert('Please enter a valid email address.')
		employment.email.focus()
		return false
					}
							
		if (dot==-1){
		alert('Please enter a valid email address.')
		employment.email.focus()
		return false
					}		

		if(employment.salon.value=='PleaseSelect'){
		alert('Please select a salon.')
		employment.salon.focus()
		return false
					}
							
		return true
	} 
//  End -->
