// calling php enquiry form module -- by Harun Biswas, Copyright(c) UltraSoft Technologies Ltd.

//web root an dother stuff
//var root_url="http://www.ultrasoft-tech.co.uk/";
//var root_url="http://usthq/ustweb/";
//var root_url="http://www.ust-direct.com/";
//var root_url="http://www.ultrasoft-tech.co.uk/ustweb/";
//var root_url="http://localhost/ust.co.uk/";
//var root_url="http://www.ust.ukgiftbaskets.co.uk/ust-direct/";

//var php_root="http://localhost/ust-direct/";

var sLF = String.fromCharCode(10); 
var chr34=String.fromCharCode(34); 

//buy image submit
var buy_image="<Input type='image' border=0 src="+chr34+root_url+"images/button_buy.gif"+chr34+">"; 




//global var
var HTMLStr="";

function OpenPopupWindows(sURL) { //v2.0
  var winName="Popup";
  var features="scrollbars=yes,resizable=yes,width=500,height=450";
  window.open(sURL,winName,features);
}

function PopupSupportForm(sURL) {
  var winName="Popup";
  var features="scrollbars=yes,resizable=yes,width=500,height=450";
  cURL=php_root+"supportfrm.aspx";
  if (sURL != "") {
    cURL+="?pq="+sURL;
  }
  window.open(cURL,winName,features);

}


function PopupEnquiryForm(sURL) {
  var winName="Popup";
  var features="scrollbars=yes,resizable=yes,width=600,height=620";
  cURL=php_root+"queryfrm.aspx";
  if (sURL != "") {
    cURL+="?pq="+sURL;
  }
  window.open(cURL,winName,features);

}

function GotoEnquiryForm(sURL, sText) {
  //var sText="Request ";
  cURL=php_root+"enquiryform.php";
  if (sURL != "") {
    cURL+="?prod="+sURL;
  }
  HTMLStr="<a href="+chr34+cURL+chr34+">"+sText+"</a>" ;
  document.write(HTMLStr);   
}



function PopupUSTProdForm(sURL) {
  var winName="Popup";
  var features="scrollbars=yes,resizable=yes,width=600,height=550";
  window.open(sURL,winName,features);

}

function GotoUSTStore(sURL) {
  var sText="Go to e-Store";
  cURL=php_root+sURL;

  HTMLStr="<a href="+chr34+cURL+chr34+" target=_blank>"+sText+"</a>" ;
  document.write(HTMLStr);   


}

function EventBookingForm(sURL) {
  var winName="Popup";
  var features="scrollbars=yes,resizable=yes,width=600,height=550";
  cURL=php_root+"bookevent.php";
  if (sURL != "") {
    cURL+="?event="+sURL;
  }
  window.open(cURL,winName,features);

}


