function displayNavigationMap()
{
	 var x = "<MAP name='main-navigation' >" +
			 "<AREA SHAPE=rect coords='1,64,74,100' HREF='index.htm' ALT='Home'> " +
			 "<AREA SHAPE=rect coords='78,64,154,100' HREF='about_us.htm' ALT='About Us'> " +
			 "<AREA SHAPE=rect coords='158,64,230,100' HREF='technology.htm' ALT='Technology'> " +
			 "<AREA SHAPE=rect coords='235,64,310,100' HREF='products.htm' ALT='Products'> " +
			 "<AREA SHAPE=rect coords='314,64,388,100' HREF='order.htm' ALT='Order'> " +
			 "<AREA SHAPE=rect coords='392,64,466,100' HREF='pricing.htm' ALT='Pricing'> " +
			 "<AREA SHAPE=rect coords='470,64,546,100' HREF='licensing.htm' ALT='Licensing'> " +
			 "<AREA SHAPE=rect coords='550,64,620,100' HREF='contact_us.htm' ALT='Contact Us'>" +
			 "<AREA SHAPE=rect coords='624,64,730,100' HREF='custom_service.htm' ALT='Custom Service'>"
			 "</MAP>";
	document.write(x);	 	
}

function writeHeader()
{
	var x = "<TABLE border='0' cellspacing='0' cellpadding='0'><TR><TD><img src='images/u-logo.gif' usemap='#main-navigation' border='0'></TABLE>";
	document.write(x);
	displayNavigationMap();
}

function writeFooter()
{
	
var x = "<BR><hr color='#2A1F00' size='1'>" +
		"<TABLE border='0' width='780'>"+	
		"<TR align='center'>"+
		"<TD class='regulartextdescription'>"+ 
		"<a href='index.htm'>Home</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+
		"<a href='about_us.htm'>About us</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+
		"<a href='technology.htm'>Technology</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+
		"<a href='products.htm'>Products</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+ 
		"<a href='order.htm'>Order</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+
		"<a href='pricing.htm'>Pricing</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+
		"<a href='licensing.htm'>Licensing</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+
		"<a href='contact_us.htm'>Contact us</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+
		"<a href='custom_service.htm'>Custom service</a></TD>"+
		"</TR>" +
		"<TR>"+
		"<TD class='copyrightmessage' align='center'  colspan='9'>2003 &copy; AB Vector LLC. All rights reserved.</TD>"+
		"</TR>"+
		"</TABLE>";
		
	document.write(x);
}

function showthemainimage()
{
	window.open('images/u-mainpicture.gif', null,'height=600,width=1000,status=yes,toolbar=no,menubar=no,location=no,left=0' );
}

function showtheimageRealBestGreen()
{
	window.open('images/u-RealBestGreen.gif','','height=600,width=1000,status=yes,toolbar=no,menubar=no,location=no,left=0');
}

function showthebig5image()
{
	window.open('images/Fig5B.gif', null,'height=600,width=1000,status=yes,toolbar=no,menubar=no,location=no,left=0' );
}


function showProteinFoldingDiseasesF1()
{
	window.open('ProteinFoldingDiseasesF1.htm', null,'height=500,width=1000,status=yes,toolbar=no,menubar=no,location=no,left=0' );
}


function showProteinFoldingDiseasesF2()
{
	window.open('ProteinFoldingDiseasesF2.htm', null,'height=500,width=1000,status=yes,toolbar=no,menubar=no,location=no,left=0' );
}

function writeBodyTblHeader()
{
	var x = "<TABLE width='1000' border='0'>";
	document.write(x);
}

function writeBodyTHeader()
{
	var x = "<TABLE width='960' border='0'>";
	document.write(x);
}

function writeBodyTblHeaderProductsPage()
{
	var x = "<TABLE width='880' border='0'>";
	document.write(x);
}

function writeBodyTblHeaderMainPage()
{
	var x = "<TABLE width='950' border='0' cellpadding='0' cellspacing='0' >";
	document.write(x);
}

function printWrappedText(txt, charPerLine ) 
{
for(var i=0; i<txt.length;){
	for(var j=0; j<charPerLine;j++,i++){
		document.write(txt.charAt(i));
		}
	document.write("<br>");
	}
}

function showAddToCartButton(itName, amount, itCatNo)
{
	var x = "<form target='paypal' action='https://www.paypal.com/cgi-bin/webscr' method='post'>" +
			"<input type='hidden' name='cmd' value='_cart'>"+
			"<input type='hidden' name='business' value='alexb@abvector.com'>"+
			"<input type='hidden' name='item_name' value='" + itName + "'>"+
			"<input type='hidden' name='item_number' value='" + itCatNo +"'>"+
			"<input type='hidden' name='amount' value='" + amount + "'>"+
			"<input type='hidden' name='no_note' value='1'>"+
			"<input type='hidden' name='currency_code' value='USD'>"+
			"<input type='image' src='images/paypal/x-click-but22.gif' border='0' name='submit' alt='Make payments with PayPal - it's fast, free and secure!'>"+
			"<input type='hidden' name='add' value='1'>"+
			"</form>";
	document.write(x);		
}
function par()
{
	document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
}
