/*******script for lohia grp made by Er. pradeep Singh*****/

/********enquiry form********/


function checkenquiry_form()
{	
	docf=document.getElementById("frm");
	if(docf.name.value=="")
	{
		alert("Enter your Name");
		docf.name.focus();
		return false;
	}
	
	if(docf.address.value=="")
	{
		alert("Enter your Address");
		docf.address.focus();
		return false;
	}
	
if(docf.phone.value=="")
	{
		alert("Enter your phone");
		docf.phone.focus();
		return false;
	}

	
	if(docf.email.value=="")
	{
		alert("Enter your Email Id");
		docf.email.focus();
		return false;
	}	

if(docf.city.value=="")
	{
		alert("Pleace enter the city");
		docf.city.focus();
		return false;
	}

if(docf.country.value=="NA")
	{
		alert("Pleace Select Your Country");
		docf.country.focus();
		return false;
	}


	if(docf.code_field.value=="")
	{
		alert("Enter the code");
		docf.code_field.focus();
		return false;	
	}
	return validate_form(docf);	
}


function validate_email(field,alerttxt)
{
	with (field)
	{
		apos=value.indexOf("@")
		dotpos=value.lastIndexOf(".")
		if (apos<1||dotpos-apos<2) 
  		{
  			alert(alerttxt);
  			return false;
  		}
		else 
		{
			return true;
		}
	}
	
}


function validate_form(thisform)
{
	with (thisform)
	{
		if (validate_email(email,"Not a valid e-mail address!")==false)
  		{
  			email.focus();
  			return false;
  		}
	}
	
}
/////////////////////////////////////////////////////////////////


/******************************FUNCTION FOR  Our Network FLASH***********************************************/

function network()
{
document.write('<embed src=our_network.swf width="630" height="440">');
}

/******************************FUNCTION FOR  production FLASH***********************************************/

function proflash()
{
document.write('<embed src=productions.swf width="200" height="112">');
}


///////////////////////////////////////////////////////////////////////////////////////////////////////////


/******************************FUNCTION FOR  production FLASH***********************************************/

function proflash1()
{
document.write('<embed src=stainlesssteel_banner.swf width="246" height="105">');
}


/***********************function for main flash****************************/

function mainflash()
{
document.write('<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 height="407" width="702">');
document.write('<param name="Movie" value="main_flash.swf">');
document.write('<param name="Src" value="main_flash.swf">');
document.write('<param name="WMode" value="Transparent">');
document.write('<param name="Quality" value="High">');
document.write('<param name="Menu" value="0">');
document.write('<param name="Scale" value="NoBorder">');
document.write('<param name="ProfilePort" value="0">');
document.write('<embed src="main_flash.swf" menu="false" quality="best"  wmode="transparent" bgcolor="#000000" WIDTH="702" HEIGHT="407" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write('</OBJECT>');

}
///////////////////////////////////////////////////////////////////////////////