<!--

	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	//--------------------------------------------------------------------------
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	//--------------------------------------------------------------------------
	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	//--------------------------------------------------------------------------
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	//--------------------------------------------------------------------------
	function mmLoadMenus() {
	  if (window.mm_menu_0726174651_0) return;
	  window.mm_menu_0726174651_0 = new Menu("root",106,18,"Verdana, Arial, Helvetica, sans-serif",12,"#FFF","#405280","#9ccde7","#f9e5a0","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
	   mm_menu_0726174651_0.addMenuItem("Calling&nbsp;Cards","location='"+ root +"portfolio/print-media/calling-cards'");
	   mm_menu_0726174651_0.addMenuItem("Post&nbsp;Cards","location='"+ root +"portfolio/print-media/post-cards'");
	   mm_menu_0726174651_0.addMenuItem("Visiting&nbsp;Cards","location='"+ root +"portfolio/print-media/visiting-cards'");
	   mm_menu_0726174651_0.fontWeight="bold";
	   mm_menu_0726174651_0.hideOnMouseOut=true;
	   mm_menu_0726174651_0.bgColor='#f6e5ad';
	   mm_menu_0726174651_0.menuBorder=1;
	   mm_menu_0726174651_0.menuLiteBgColor='#f6e5ad';
	   mm_menu_0726174651_0.menuBorderBgColor='#f6e5ad';
	
	mm_menu_0726174651_0.writeMenus();
	} // mmLoadMenus()

	//--------------------------------------------------------------------------
	/*	This funciton is used to validate the contact us form
		inputs: 1: form Object
		output: true or false
	*/
	function validate(form)
	{
		var txtMsg	=	"";

		//If Name is not provided
		if(form.txt_FullName.value=="")
			txtMsg	+=	"=> Please provide us your \"Full Name\".\n";
		//If Email address is not provided			
		if(form.txt_Email.value=="")
			txtMsg	+=	"=> Please provide us your \"Valid Email address\" to contact back.\n";
		//If Subject is not provided
		if(form.txt_Subject.value=="")
			txtMsg	+=	"=> Please provide us \"The Subject\" of the enquiry made by you.\n";
		//If message is not provided
		if(form.txt_Message.value=="")
			txtMsg	+=	"=> Please write somthing to us.\n";

		//If Message is not empty, means there is something missing, show it to the User
		if(txtMsg	!="")
		{
			//Display message.
			alert("Messages:\n" + txtMsg);
			return false;
		}
		return true;
	}//End of ValidateForm(form)

	//--------------------------------------------------------------------------
	/*	This funciton gets all the posted values from the form and post that to server through HTTP request
		inputs: 1: form Object
		output: Post values to the Server through http Object	
	*/
	function getPosedValue(form)
	{
	
		var poststr = "txt_FullName=" + encodeURI(form.txt_FullName.value) +
                      "&txt_Email=" + encodeURI( form.txt_Email.value )+
					  "&txt_Phone=" + encodeURI(form.txt_Phone.value) +
					  "&txt_Fax=" + encodeURI(form.txt_Fax.value) +
					  "&txt_Subject=" + encodeURI(form.txt_Subject.value) +
					  "&txt_Message=" + encodeURI(form.txt_Message.value) +
					  "&cmd_Enquiry=" + encodeURI(form.cmd_Enquiry.value);
	  
	  document.getElementById('p_button').style.display = "none";
	  
	  //Make the request now through HTTP
	  CreateXMLHttpObjectAndProcess(root + "sendemail.php","div_Error", true, poststr)

	}// Closing of function getPosedValue()
	//--------------------------------------------------------------------------

//-->
