// JavaScript Document

function changeText2(){
	
	if (wlink=="about"){
		var oldHTML = document.getElementById('flash_nav').innerHTML;
		var newHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='234' height='211.3'><param name='movie' value='swf/nav_about.swf?navie=about'>	<param name='quality' value='high'><embed src='swf/nav_about.swf?navie=about' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='234' height='211.3'></embed></object>";
		document.getElementById('flash_nav').innerHTML = newHTML;
		//document.getElementsByName('bg')[0].className="mainbg5";
		}
	else if (wlink=="product"){
		var oldHTML = document.getElementById('flash_nav').innerHTML;
		var newHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='234' height='303.8'><param name='movie' value='swf/nav_product.swf?sublink="+sublink +"'>	<param name='quality' value='high'><embed src='swf/nav_product.swf?sublink="+sublink+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='234' height='303.8'></embed></object>";
		document.getElementById('flash_nav').innerHTML = newHTML;
		//document.getElementsByName('content')[0].id="product_content";
		document.getElementById('sub_content').value = "product_content"
		document.getElementById('sub_content').id = "product_content"
		//document.getElementsByName('bg')[0].className="mainbg5";
		}
	else if (wlink=="news"){
		//var oldHTML = document.getElementById('flash_nav').innerHTML;
		//var newHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='234' height='211.3'><param name='movie' value='swf/nav_about.swf?navie=news&sublink="+sublink+"'>	<param name='quality' value='high'><embed src='swf/nav_about.swf?navie=news&sublink="+sublink+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='234' height='211.3'></embed></object>";
		//document.getElementById('flash_nav').innerHTML = newHTML;
		//document.getElementsByName('bg')[0].className="mainbg5";
		var oldHTML = document.getElementById('flash_nav').innerHTML;
		var newHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='234' height='211.3'><param name='movie' value='swf/nav_about.swf?navie=news'>	<param name='quality' value='high'><embed src='swf/nav_about.swf?navie=news' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='234' height='211.3'></embed></object>";
		document.getElementById('flash_nav').innerHTML = newHTML;
	
		
		}
	else if (wlink=="team"){
		var oldHTML = document.getElementById('flash_nav').innerHTML;
		var newHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='234' height='211.3'><param name='movie' value='swf/nav_about.swf?navie=team&sublink="+sublink+"'>	<param name='quality' value='high'><embed src='swf/nav_about.swf?navie=team&sublink="+sublink+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='234' height='211.3'></embed></object>";
		document.getElementById('flash_nav').innerHTML = newHTML;
		//document.getElementsByName('bg')[0].className="mainbg5";
		}
	else if (wlink=="contact"){
		var oldHTML = document.getElementById('flash_nav').innerHTML;
		var newHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='234' height='211.3'><param name='movie' value='swf/nav_about.swf?navie=contact'><param name='quality' value='high'><embed src='swf/nav_about.swf?navie=contact' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='234' height='211.3'></embed></object>";
		document.getElementById('flash_nav').innerHTML = newHTML;
		//document.getElementsByName('bg')[0].className="mainbg5";
		}
	else if (wlink=="admin"){
		var oldHTML = document.getElementById('flash_nav').innerHTML;
		var newHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='234' height='211.3'><param name='movie' value='../swf/nav_admin.swf'><param name='quality' value='high'><embed src='../swf/nav_admin.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='234' height='211.3'></embed></object>";
		document.getElementById('flash_nav').innerHTML = newHTML;
		//document.getElementsByName('bg')[0].className="mainbg5";
		}
}

function yo(){
	//document.location.href = "contact.html";
	document.write(page);
}
/* 
  ------------------------------------------------
  PVII Equal CSS Columns scripts -Version 2
  Copyright (c) 2005 Project Seven Development
  www.projectseven.com
  Version: 2.1.0
  ------------------------------------------------
*/
function P7_colH2(){ //v2.1.0 by PVII-www.projectseven.com
 var i,oh,h=0,tg,el,np,dA=document.p7eqc,an=document.p7eqa;if(dA&&dA.length){
 for(i=1;i<dA.length;i+=2){dA[i+1].style.paddingBottom='';}for(i=1;i<dA.length;i+=2){
 oh=dA[i].offsetHeight;h=(oh>h)?oh:h;}for(i=1;i<dA.length;i+=2){oh=dA[i].offsetHeight;
 if(oh<h){np=h-oh;if(!an&&dA[0]==1){P7_eqA2(dA[i+1].id,0,np);}else{
 dA[i+1].style.paddingBottom=np+"px";}}}document.p7eqa=1;
 document.p7eqth=document.body.offsetHeight;
 document.p7eqtw=document.body.offsetWidth;}
}
function P7_eqT2(){ //v2.1.0 by PVII-www.projectseven.com
 if(document.p7eqth!=document.body.offsetHeight||document.p7eqtw!=document.body.offsetWidth){P7_colH2();}
}
function P7_equalCols2(){ //v2.1.0 by PVII-www.projectseven.com
 var c,e,el;if(document.getElementById){document.p7eqc=new Array();
 document.p7eqc[0]=arguments[0];for(i=1;i<arguments.length;i+=2){el=null;
 c=document.getElementById(arguments[i]);if(c){e=c.getElementsByTagName(arguments[i+1]);
 if(e){el=e[e.length-1];if(!el.id){el.id="p7eq"+i;}}}if(c&&el){
 document.p7eqc[document.p7eqc.length]=c;document.p7eqc[document.p7eqc.length]=el}}
 setInterval("P7_eqT2()",10);}
}
function P7_eqA2(el,p,pt){ //v2.1.0 by PVII-www.projectseven.com
 var sp=10,inc=20,g=document.getElementById(el);np=(p>=pt)?pt:p;
 g.style.paddingBottom=np+"px";if(np<pt){np+=inc;
 setTimeout("P7_eqA2('"+el+"',"+np+","+pt+")",sp);}
}


// form validation

function checkform(form){
	if (document.signup.name.value == "") {
		alert( "Please fill in all neccessary information." );
		signup.name.focus();
		return false ;
		}
	else if (document.signup.company.value == "") {
		alert( "Please fill in all neccessary information." );
		signup.company.focus();
		return false ;
		}
	else if (document.signup.address.value == "") {
		alert( "Please fill in all neccessary information." );
		signup.address.focus();
		return false ;
		}

	else if (document.signup.phone.value == "") {
		alert( "Please fill in all neccessary information." );
		signup.phone.focus();
		return false ;
		}
	else if (document.signup.email.value == "") {
		alert( "Please fill in all neccessary information." );
		signup.email.focus();
		return false ;
		}
	else if (document.signup.username.value == "") {
		alert( "Please fill in all neccessary information." );
		signup.username.focus();
		return false ;
		}
	else if (document.signup.password.value == "") {
		alert( "Please fill in all neccessary information." );
		signup.password.focus();
		return false ;
		}
		
	// ** END **
else{
	return true ;
}
}



function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=300');");
}


//----------------------

function calcHeight()
{
//find the height of the internal page

var the_height=document.getElementById('the_iframe').contentWindow.document.body.scrollHeight;

//change the height of the iframe
document.getElementById('the_iframe').height=the_height;

}


