function contactUs() {
	var win = new Window({className: "ilogo", width:600, height:400, maximizable: false, minimizable: false, url: "contactus.html", showEffectOptions: {duration:0.5}});
	win.setZIndex(5000);
	win.showCenter(true);
}

function consult() {
	var win = new Window({className: "ilogo", width:600, height:400, maximizable: false, minimizable: false, url: "specialist.php", showEffectOptions: {duration:0.5}});
	win.setZIndex(5000);
	win.showCenter(true);
}

function retrieveDesigns() {
	var win = new Window({className: "ilogo", width:250, height:200, maximizable: false, minimizable: false, url: "retrievein.php", showEffectOptions: {duration:0.5}});
	win.setZIndex(5000);
	win.showCenter(true);
}
function showTopic(p_Topic) {
	if(p_Topic == 'sizechart'){
		sizeChart();
		return false;
	}
		
	var win = new Window({className: "ilogo", width:660, height:460, maximizable: false, minimizable: false, url: "textframe.php?t="+p_Topic, showEffectOptions: {duration:0.5}});
	win.setZIndex(5000);
	win.showCenter(true);
}
function showOurstory() {
	var win = new Window({className: "ilogo", width:660, height:460, maximizable: false, minimizable: false, url: "our_story.html", showEffectOptions: {duration:0.5}});
	win.setZIndex(5000);
	win.showCenter(true);
}
function showDesignIdeas() {
	var win = new Window({className: "ilogo", width:660, height:460, maximizable: false, minimizable: false, url: "design_ideas.html", showEffectOptions: {duration:0.5}});
	win.setZIndex(5000);
	win.showCenter(true);
}
function showImageGuidelines() {
	var win = new Window({className: "ilogo", width:660, height:400, maximizable: false, minimizable: false, url: "image_guidelines.php", showEffectOptions: {duration:0.5}});
	win.setZIndex(5000);
	win.showCenter(true);
}
function showRetrunPolicy() {
	var win = new Window({className: "ilogo", width:660, height:460, maximizable: false, minimizable: false, url: "return_policy.html", showEffectOptions: {duration:0.5}});
	win.setZIndex(5000);
	win.showCenter(true);
}
function sizeChart() {
	var win = new Window({className: "ilogo", width:600, height:480, maximizable: false, minimizable: false, url: "sizechart.php"});
	win.setZIndex(5000);
	
	win.showCenter(true);
}
function quickQutote(id, type) {
	var win = new Window({className: "ilogo", width:500, height:270, maximizable: false, minimizable: false, url: "quickquote.php?id="+id+"&type="+type, showEffectOptions: {duration:0.5}});
	win.setZIndex(5000);
	
	win.showCenter(true);
}
function priceTips() {
	var win = new Window({className: "ilogo", width:600, height:300, maximizable: false, minimizable: false, url: "pricingtips.html"});
	win.setZIndex(5000);
	
	win.showCenter(true);
}
function printGuide() {
	var win = new Window({className: "ilogo", width:600, height:400, maximizable: false, minimizable: false, url: "print_guide.php"});
	win.setZIndex(5000);
	
	win.showCenter(true);
}
function returnpolicyShipping() {
	var win = new Window({className: "ilogo", width:600, height:300, maximizable: false, minimizable: false, url: "returnpolicy_shipping.html"});
	win.setZIndex(5000);
	
	win.showCenter(true);
}
function privacyPolicy() {
	var win = new Window({className: "ilogo", width:600, height:300, maximizable: false, minimizable: false, url: "privacy_policy.html"});
	win.setZIndex(5000);
	
	win.showCenter(true);
}
function userAgrement() {
	var win = new Window({className: "ilogo", width:700, height:500, maximizable: false, minimizable: false, url: "user_agreement.html", showEffectOptions: {duration:0.5}});
	win.setZIndex(5000);
	win.showCenter(true);
}
var ImageArray= new Array(4);
ImageArray[0]="newui/1.gif";
ImageArray[1]="newui/2.gif";
ImageArray[2]="newui/3.gif";
ImageArray[3]="newui/4.gif";
function onIndexPageLoad() {

	//setInterval("changeLogo1()", 1000);
	//setInterval("changeLogo2()", 999);
	//setInterval("changeLogo3()", 888);
	//setInterval("changeLogo4()", 1111);
}
function changeLogo1(){
	var rand =Math.floor(Math.random()*4);
	document["LOGO_CHG1"].src = ImageArray[rand];
}
function changeLogo2(){
	var rand =Math.floor(Math.random()*4);
	document["LOGO_CHG2"].src = ImageArray[rand];
}
function changeLogo3(){
	var rand =Math.floor(Math.random()*4);
	document["LOGO_CHG3"].src = ImageArray[rand];
}
function changeLogo4(){
	var rand =Math.floor(Math.random()*4);
	document["LOGO_CHG4"].src = ImageArray[rand];
}
var prod_win;
function products() {
	/*prod_win = new Window({className: "ilogo", width:600, height:500, maximizable: false, minimizable: false, url: "products.php", showEffectOptions: {duration:0.5}});
	prod_win.setZIndex(5000);
	prod_win.showCenter(true);*/
	window.location.replace('products_cate.php');
}
function designCategory() {
	window.location.replace('design_products.php');
}
function createCategory() {
	window.location.replace('create_products.php');
}
function checkInput(form, mode, arg)
{
  found = false;
  i = 0;

  
  if (mode == 3)
    i = arg;

  splitText(form.country.options[i].value);
  
  form.shipping_country.value = form.country.options[i].text;
  form.shipping_phone.value = txt1;
  form.shipping_phonealt.value = txt1;
  form.shipping_phone.focus();
  //form.tcode2.value = txt2;
 // form.freetext.value = form.tname.options[i].text;
}

function splitText(txt)
{
  txt1 = txt.substring(0, txt.indexOf(","));
  txt2 = txt.substring(txt.indexOf(",") + 1, txt.length);
}

