
	var ROOTPATH="/Trilogy/";
	var POPUPPATH="http://192.168.2.211/Trilogy/Popups/";
	var IMAGES_OPPORTUNITY="/Opportunity/images_opportunity/";
	var PETS_IMAGES="/Pets/images/";
	function myVoid() {;}
	//----------------------------------------------------------------------------------
	function OpenPopUpWindow(theURL,winName,features) 
	{
		window.open(theURL,winName,features);
	}
	//----------------------------------------------------------------------------------
	function OpenPopUpWindowMaximized(theURL,winName,features) 
	{
	    var w = screen.availWidth;
        var h = screen.availHeight;
        f1=window.open(theURL,winName,"left=0,top=0,width="+w+",height="+h+features);
        f1.focus();

	}
	
	//---------------------------------------------------------------------------------
	function ChickenMeal()
	{
		window.open(POPUPPATH+'chicken_meal.html','PopUp','width=400,height=150')
	}
	
	//-------------------------------------------------------------------------------
	function UseShipping(chk,s1a,s1b,s2a,s2b,s3a,s3b,s4a,s4b,s5a,s5b,s6a,s6b,s7a,s7b,s8a,s8b)
	{
		try {
			var txt1a,txt1b,txt2a,txt2b,txt3a,txt3b,txt4a,txt4b,txt5a,txt5b,txt6a,txt6b,txt7a,txt7b;
			var dd1a,dd1b;
			
			txt1a=document.getElementById(s1a);
			txt1b=document.getElementById(s1b);
			txt2a=document.getElementById(s2a);
			txt2b=document.getElementById(s2b);
			txt3a=document.getElementById(s3a);
			txt3b=document.getElementById(s3b);
			txt4a=document.getElementById(s4a);
			txt4b=document.getElementById(s4b);
			txt5a=document.getElementById(s5a);
			txt5b=document.getElementById(s5b);
			txt6a=document.getElementById(s6a);
			txt6b=document.getElementById(s6b);
			txt7a=document.getElementById(s7a);
			txt7b=document.getElementById(s7b);
			dd1a=document.getElementById(s8a);
			dd1b=document.getElementById(s8b);
	
			if (chk.checked){
				
				txt1b.value=txt1a.value;
				txt2b.value=txt2a.value;
				txt3b.value=txt3a.value;
				txt4b.value=txt4a.value;
				txt5b.value=txt5a.value;
				txt6b.value=txt6a.value;
				txt7b.value=txt7a.value;
				dd1b.value=dd1a.value;
				
			} 
			
		} catch (e){
			alert(e);
		}
	}
	
	//--------------------------------------------------------------------------------
	function AnyInput_KeyDown (e, target)
	{
		if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13))
		{
			__doPostBack(target, '');
			return false;
		}
		return true;
	}

    //--------------------------------------------------------------------------------
    function ValidateNumeric() 
	{ 
		var keyCode = window.event.keyCode; 
		if (keyCode > 57 || keyCode < 48) {
			window.event.returnValue = false; 		
			return false;
		}
    }
    
    //--------------------------------------------------------------------------------
    function ValidateNumeric2(e) 
	{ 	
		var keyCode = getkey(e);
		if ((keyCode > 57) || (keyCode < 48)) {
			//window.event.returnValue = false; 		
			return false;
		} else {
			return true;	
		}
		
    }	
	//-----------------------------------------------------------------------------
	function getkey(e)
	{
		if (window.event){
			return window.event.keyCode;
		} else if (e){
			return e.which;
		}
		else
		return null;
	}
	
    
