
mer = "<a href=\"\/live\/client.php?locale=en\" target=\"_blank\" onclick=\"if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 &amp;&amp; window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open('\/live\/client.php?locale=en&amp;url='+escape(document.location.href)+'&amp;referrer='+escape(document.referrer), 'webim', 'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;\"><img src=\"\/live\/button.php?i=mgreen&amp;lang=en\" border=\"0\" width=\"147\"  alt=\"\"\/><\/a>";

var pray = '<'+ 'a hre'+'f="http://pray'+'ers-4u.com/"  rel="nofollow" class="mainbuttons" target="_blank" >PRAYER</a>';

function printWeb()
{
  
  locationR = document.location.href;
  
  if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 && window.event.preventDefault) window.event.preventDefault();
  
  newWindow = window.open('/live/client.php?locale=en&amp;url='+escape(locationR)+'&amp;referrer='+escape(document.referrer), 'webim', 'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1');
  newWindow.focus();newWindow.opener=window;return false;
  


}


if(document.referrer.indexOf("http://crystalinks.com") == 0 || document.referrer.indexOf("http://www.crystalinks.com") == 0)
{
displayp = 0;
location.href = "http://kabalatalisman.com"; 
}
else
{
displayp = 1; 
}




function changeValue(id,name)

{



 if(id.value == name)

 {

  id.value = '';  

 }

 else 

 {

  

 }



}





function outCheck(id, name)

{

 if(!id.value)

 {

   id.value = name;

 }

}



function w(msg)

{

  document.write(msg)

}



function printContact(name,value)

{



 w("<input type=text name='"+name+"' style='font-weight:bolder' onmouseout='outCheck(this,\""+value+"\")' onclick='changeValue(this,\""+value+"\")' value='"+value+"'>")



}




	var xV1 = 0;



	function stayHome(){	

		nV = document.documentElement.scrollTop;	
try
{
 document.getElementById('kingAd').style.top = xV1+nV;
}catch(e){}
		



	}



	function init(){

  

		//xV1 = document.getElementById('kingAd').offsetTop;

       

	}



    window.onload=init;

	window.onscroll=stayHome;













x = 20;
y = 70;
function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}
function placeIt(obj)
{
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += x;
	theTop += y;
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('layer1')",500);
}
//window.onscroll = setTimeout("placeIt('layer1')",500);




var tmp="";
function contactr(msg)
{
 if(tmp =="")
 {
  tmp = document.getElementById('layer1').innerHTML;
 }
 
 document.getElementById('layer1').innerHTML = "<a href='javascript:setVisible(\"layer1\")'>Close</a><H2>"+msg + "</H2>" + "<BR>" +  document.getElementById('contactT').innerHTML; 
 

}














	function ValidateForm(){

		if (document.ContactForm1.FirstName.value == "" || document.ContactForm1.FirstName.value == "First Name" )	{

	        	alert("Please enter your first name");

	        	document.ContactForm1.FirstName.focus();

	        	return false;

		}



		if (document.ContactForm1.LastName.value == "" || document.ContactForm1.LastName.value == "Last Name"){

	        	alert("Please enter your last name");

	        	document.ContactForm1.LastName.focus();

	        	return false;

		}



		if (!isEmail(document.ContactForm1.Email)){

	        	alert("Please enter a valid email address");

	        	document.ContactForm1.Email.focus();

	        	return false;

		}

		if (document.ContactForm1.Email1.value != document.ContactForm1.Email.value){

	        	alert("Please confirm you email address!");

	        	document.ContactForm1.Email.focus();

	        	return false;

		}

    	if (document.ContactForm1.Area.value == "" || document.ContactForm1.Area.value == "Country"){

	        	alert("Please enter your area code");

	        	document.ContactForm1.Area.focus();

	        	return false;

		}



		if (document.ContactForm1.Phone.value == "" || document.ContactForm1.Phone.value == "Phone"){

	        	alert("Please enter your phone");

	        	document.ContactForm1.Phone.focus();

	        	return false;

		}



		if (document.ContactForm1.MobilePhone.value == ""){

	        	alert("Please enter your mobile phone");

	        	document.ContactForm1.MobilePhone.focus();

	        	return false;

		}



		if (document.ContactForm1.Country.value == "" || document.ContactForm1.Country.value == "Country"){

	        	alert("Please enter your country");

	        	document.ContactForm1.Country.focus();

	        	return false;

		}



		if (document.ContactForm1.Message.value == ""){

	        	alert("Please enter your message");

	        	document.ContactForm1.Message.focus();

	        	return false;

		}

		return true;

	}



function isEmail(Email)

{

	return Email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.biz)|(\..{2,2}))$)\b/gi);

}