function pcMenu(page,cart)
{
	var menunames = new Array("products","history","send file","cart","get quote / place order","log out")
	var menuproducts = "pcpages/cl_products.php?cartid="+cart
	var menuhistory = "pcpages/cl_history.php?cartid="+cart
	var menusend = "pcpages/cl_sendfile.php?cartid="+cart
	var menucart = "pcpages/cl_cart.php?cartid="+cart
	var menuquote = "pcpages/cl_quote.php?cartid="+cart
	var menulogout = "javascript:logout()";
	var menuref	= new Array(menuproducts,menuhistory,menusend,menucart,menuquote,menulogout)
	for (n=0;n<menunames.length;n++){
		if (page==n){
			document.writeln('<div class="menucell" id="onpage"><span class="menuword">' + menunames[n] + '</span></div>')
		} else {	
			document.writeln('<a href=' + menuref[n] + ' class="menucell">' + menunames[n] + '</a>')
		}
	}
}

function mainMenu(page){
	var menunames = new Array("home","products & services","send file","get quote / place order","tips","contact us")
	var menuhome = "\"\"";
	var menuproducts = "pc_products.php";
	var menusend = "pc_send.php";
	var menuquote = "pc_quote.php";
	var menutips = "pc_tips.php";
	var menucontact = "pc_contact.php";
	
	var menuref = new Array(menuhome,menuproducts,menusend,menuquote,menutips,menucontact)
	
	for (n=0;n<menunames.length;n++){
		if (page==n){
			document.writeln('<div class="menucell" id="onpage"><span class="menuword">' + menunames[n] + '</span></div>')
		} else {
			document.writeln('<a href=' + menuref[n] + ' class="menucell">' + menunames[n] + '</a>')
		}
	}
}

function login(){
	document.write('<div style="padding-top:50px;padding-bottom:40px;margin-left:20px;margin-right:-20px">' +
					'<table width="150" border="0" cellspacing="0" cellpadding="1">' +
					'<tr><td><span style="color:red;font-size:14px;font-weight:bold">login</span></td></tr>' +
				    '<tr><form name="login" action="http://www.pressconcepts.com/pcpages/bouncer.php" method="post">' +
					'<td><input name="pcun" type="text" class="text" cols="25" maxlength="100" value="Email Address" onFocus="if(this.value==\'Email Address\') {this.value=\'\';}" onBlur="if(this.value==\'\') {this.value=\'Email Address\';}">' +
					'</td></tr>' +
					'<tr><td> <input name="pcpw" type="password" class="text" cols="25" maxlength="100" value="Password" onFocus="if(this.value==\'Password\') {this.value=\'\';}" onBlur="if(this.value==\'\') {this.value=\'Password\';}">' +
					'</td></tr>' +
					'<tr><td><input name="Submit" type="submit" class="text" value="Submit"></td></form></tr>' +
					'<tr><td><div class="wrong" id="wrong">Email/Password is incorrect.</div></td></tr>' +
					'</table></div>')
}

function check_login(){
	if (document.location.search.length>0){
		document.getElementById("wrong").style.visibility = "visible"
	}
}
function showsample(sample,wi,hi){
	var specs = "scrollbars=no,toolbar=no,location=no,menubar=no,resizable=yes,status=no,width="+wi+",height="+hi+'"'
	var sw=open('','pcdWin',specs)
	sw.document.open()
	sw.document.write("<html\><head\><title\>"+sample.name+"</title\></head\>" +
					"<body style=\"margin:0px\"\>"+
					"<img src=\""+sample.src+"\" onClick=\"window.close()\"><br /\></body\></html\>");
	sw.document.close()
}
function getPageSize(){
	var de = document.documentElement;
	var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
	
	arrayPageSize = new Array(w,h) 
	return arrayPageSize;
}

function getPageSize(){
	var de = document.documentElement;
	var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
	
	arrayPageSize = new Array(w,h) 
	return arrayPageSize;
}
function logout(){
	var decide = confirm("Logout to Home Page?");
	if (decide){
		window.location="http://www.pressconcepts.com";
	}
}