
function popup(page)
{
	popwin = window.open(page,'CST',"toolbar=0,status=0,location=0,directories=0,menubar=0,width=625,height=500,resize='yes',scrollbars=1");
	popwin.window.focus();
}

function subscribeEntry()
{
	alert('OK')
}
function confirmAction() {
  return confirm("WARNING: Are you sure you want to delete every item in your shopping cart ??!!!     ")
}
function newWindow(file,window) {
	msgWindow=open(file,window,'resizable=no,width=200,height=220');
	if (msgWindow.opener == null) msgWindow.opener = self;
}
function switchImage(imgName, imgSrc) 
{
  if (document.images) {
    if (imgSrc != "none") { document.images[imgName].src = imgSrc; }
  }
}


/*///////// AJAX GET /////////*/

var xmlHttp;
var DIVID;
 
function call(URL,RDIV){ 
 DIVID = RDIV;
 xmlHttp=GetXmlHttpObject()
  
 xmlHttp.onreadystatechange=stateChanged
 xmlHttp.open("GET",URL,true)
 xmlHttp.send(null)
}
 
function stateChanged(){ 
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 
  document.getElementById(DIVID).innerHTML=xmlHttp.responseText 
 } 
} 
 
function GetXmlHttpObject() { 
 var objXMLHttp=null
 if (window.XMLHttpRequest){
  objXMLHttp=new XMLHttpRequest()
 }
 else if (window.ActiveXObject){
  objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
 }
 return objXMLHttp
}

