// JavaScript Document
//FAQ
function showClass(ID)
{
	//document.getElementById(obj).className="open";
	var objClass = document.getElementById("h6_"+ID).className;
	if (objClass != "open"){
		document.getElementById("h6_"+ID).className="open";
		document.getElementById("P_"+ID).style.display="";
		//over();
	}else{
		document.getElementById("h6_"+ID).className="";
		document.getElementById("P_"+ID).style.display="none";
		//out();
	}
}
//function over()
//{
//	var h = document.getElementById("P_"+ID).offsetHeight;
//	if (h < 38){
//		document.getElementById("PCLass").style.height = h + 1;
//		document.getElementById("DIV2").style.height=h +1;
//		clearTimeout(act);
//		act = setTimeout('over()', 1);
//	}
//}
//function out(){
//	var h = parseInt(document.getElementById("PCLass").style.height);
//	if (h > 19){
//	document.getElementById("PCLass").style.height = h - 1;
//	document.getElementById("DIV2").style.height = h - 1;
//	clearTimeout(act);
//	act = setTimeout('out()', 10);
//	}
//}

function checkFeedback()
{
	if(document.getElementById("UserName").value=="")
	{
		alert("Your name is null!");
		document.getElementById("UserName").focus();
		return false;
	}
	if(document.getElementById("Email").value=="")
	{
		alert("E-mail is null!");
		document.getElementById("Email").focus();
		return false;
	}
	if(document.getElementById("CompName").value=="")
	{
		alert("Company Name is null!");
		document.getElementById("CompName").focus();
		return false;
	}
	if(document.getElementById("Content").value=="")
	{
		alert("Content is null!");
		document.getElementById("Content").focus();
		return false;
	}
	return true;
}

function checkSform()
{
	var pageType=document.getElementById("pageType").value;
	if(pageType!=0)	
	{
		if(document.getElementById("searchValue").value!="")
		{
			if(pageType==1)
			{	Spage="pSearch.asp";}
			if(pageType==2)
			{	Spage="nSearch.asp";}
			if(pageType==3)
			{	Spage="fSearch.asp";}
			Sform.action=Spage;
			Sform.submit();
		}
	}else{
		alert("Please select search type!");
		document.getElementById("pageType").focus();
		return false;
	}
}
function F_flash(flashURL,flashWIDTH,flashHEIGHT)
{
document.writeln ('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" WIDTH='+flashWIDTH+' HEIGHT='+flashHEIGHT+'>'); 
document.writeln ('<PARAM NAME=movie VALUE="'+flashURL+'">'); 
document.writeln ('<PARAM NAME=wmode VALUE=transparent>'); 
document.writeln ('<PARAM NAME=loop VALUE=true>'); 
document.writeln ('<PARAM NAME=quality VALUE=high>'); 
document.writeln ('<EMBED src="'+flashURL+'" loop=true wmode=opaque quality=high swLiveConnect=FALSE WIDTH='+flashWIDTH+' HEIGHT='+flashHEIGHT+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>'); 
document.writeln ('</OBJECT>'); 
}

