// JavaScript Document
function popup(URL){
	window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=670,height=540');
}


function tabbghide(){
	document.getElementById('tab1').className="";
	document.getElementById('tab2').className="";
	document.getElementById('tab3').className="";
	document.getElementById('tab4').className="";

}
function hidedisplay(){
	document.getElementById('display1').className="no_display";
	document.getElementById('display2').className="no_display";
	document.getElementById('display3').className="no_display";
	document.getElementById('display4').className="no_display";
	document.getElementById('thirdnav1').className="no_display";
	document.getElementById('thirdnav2').className="no_display";
	document.getElementById('thirdnav3').className="no_display";

}
function show1(){
	tabbghide();
	hidedisplay();
	document.getElementById('tab1').className="item_active";
	document.getElementById('display1').className="display";
	document.getElementById('thirdnav1').className="display";
	//var oldHTML = document.getElementById('sec1').innerHTML;
	//document.getElementById('display').innerHTML = oldHTML;
	}
function show2(){
	tabbghide();
	hidedisplay();
	document.getElementById('thirdnav2').className="display";
	document.getElementById('tab2').className="item_active";
	document.getElementById('display2').className="display";
	
	}
function show3(){
	tabbghide();
	hidedisplay();
	document.getElementById('thirdnav3').className="display";
	document.getElementById('tab3').className="item_active";
	document.getElementById('display3').className="display";
	}
function show4(){
	tabbghide();
	hidedisplay();
	document.getElementById('tab4').className="item_active";
	document.getElementById('display4').className="display";
	}
	
function ligament_nav(){
	newHTML='<blockquote style="margin-left:10px; margin-right:0px;"><a href="knee_tendon.html">&ndash; Tendon</a><br><a href="patella_bone_tendon_bone.html">&ndash; Tendon with bone block</a></blockquote>';
	document.getElementById('ligament').innerHTML = newHTML;
	}

	
function PopupPic(sPicURL) { 
	window.open( "popup.htm?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200"); 
	} 

function checkload(){
	if(page=="ligament"){
		ligament_nav();
		}
	}


//form check
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 checkform2(form){
	if (document.signup.name.value == "") {
		alert( "Please fill in all neccessary information." );
		signup.name.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.comments.value == "") {
		alert( "Please fill in all neccessary information." );
		signup.comments.focus();
		return false ;
		}
		
	// ** END **
else{
	return true ;
}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}