var xmlHttp
function showUser(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="/order_app/getaccount.php"
url=url+"?accounts="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
 } 
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}

<!---Pop up window---------------------------->

var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=500,width=400');
	if (window.focus) {newwindow.focus()}
}

<!---Pop up window - Bios---------------------------->

var newwindow;
function bio_pop(url)
{
	newwindow=window.open(url,'name','height=900,width=750,scrollbars=yes,resizeable=yes');
	if (window.focus) {newwindow.focus()}
}

<!---Pop up window - NEWS---------------------------->

var newwindow;
function news_pop(url)
{
	newwindow=window.open(url,'name','height=900,width=750,scrollbars=yes,resizeable=yes');
	if (window.focus) {newwindow.focus()}
}

<!---Pop up window - CASES---------------------------->

var newwindow;
function casestudy_pop(url)
{
	newwindow=window.open(url,'name','height=900,width=750,scrollbars=yes,resizeable=yes');
	if (window.focus) {newwindow.focus()}
}


<!---Pop up window---------------------------->

var newwindow;
function order_pop(url)
{
	newwindow=window.open(url,'name','height=850,width=600');
	if (window.focus) {newwindow.focus()}
}

<!---Pop up window---------------------------->

var newwindow;
function port_pop(url)
{
	newwindow=window.open(url,'name','height=750,width=800');
	if (window.focus) {newwindow.focus()}
}


<!---Pop up window---------------------------->

var newwindow;
function resume_pop(url)
{
	newwindow=window.open(url,'name','height=750,width=800,scrollbars=yes,resizeable=yes');
	if (window.focus) {newwindow.focus()}
}


<!-------------Calculator for Marketer Funded Promos------------------>

function calculate() {
A = document.calc.kitquantity.value
B = document.calc.kitvalue.value
C = document.calc.bigposterqty.value
D = document.calc.bigpostervalue.value
E = document.calc.smposterqty.value
F = document.calc.smpostervalue.value

A = Number(A)
B = Number(B)
C = Number(C)
D = Number(D)
E = Number(E)
F = Number(F)

G = (A * B)
H = (C * D)
I = (E * F)
J = (G + H + I)
document.calc.subtotalA.value = G
document.calc.subtotalB.value = H
document.calc.subtotalC.value = I
document.calc.TTL.value = J
}
