﻿function Options(){
var vopt = document.forms[0].cboOptions.options[document.forms[0].cboOptions.selectedIndex].value
//document.forms[0].pname.value = document.forms[0].pname2.value + "-" 
document.forms[0].pname.value = document.forms[0].pname2.value + "-" + vopt;
}

function SeeThisLook(picture){
document.getElementById('mypic').style.visibility = "";
MainPic2.innerHTML='<img src="http://www.emoda.com/' + picture + '" alt="Look Book View" >'
} 
 
 
function popSize(URL) {
		day = new Date();
		id = day.getTime();
		//eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=490,height=410,left = 0,top = 0');");
		
		window.open(URL,"_new",'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=490,height=410,left = 0,top = 0');
		
		}


function popPrice(URL) {
		day = new Date();
		id = day.getTime();
		window.open(URL,"_new",'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=480,height=465,left = 0,top = 0');
		}		
		
		
		
	function popUp(URL) {
		day = new Date();
		id = day.getTime();
		//eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=480,height=465,left = 0,top = 0');");
		
		 window.open(URL,"_new",'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=480,height=465,left = 0,top = 0');
		
		}	
		
function AddToList(){
document.frm.action = 'Addtowishlist.asp'
document.frm.submit()
}

function Details(){
ProductDetails.innerHTML= vDet;
Tab1.src= 'details/product_detailson.jpg';
Tab2.src= 'details/sizechart_off.jpg';
Tab3.src= 'images/more_view_off.jpg';

}






var lastcolor = ""
// mouse over row
function ov(object){
lastcolor = object.style.backgroundColor;
object.style.backgroundColor = "#000000";
}

// mouse out row
function ou(object){
object.style.backgroundColor = lastcolor;
}


function ov2(object){
lastcolor = object.style.backgroundColor;
object.style.backgroundColor = "#44265E";
}



function ShoCat(strBFont, strTitleText, strFontColor) 
{

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="brands/AJAX/AJAXcategories.asp?BFont=" + strBFont + "&TitleText=" + strTitleText + "&FontColor=" + strFontColor;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}




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;
}


function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
MyTabs.innerHTML =xmlHttp.responseText;
}
}

function Brands() 
{ 
if (xmlHttp.readyState==4)
{ 
five.innerHTML =xmlHttp.responseText;
}
}


function designerList() {
			
			
	xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="AJAXbrands.asp";
xmlHttp.onreadystatechange=Brands;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
document.getElementById('five').style.visibility = "";		
			
}


function CloseFive() {
				document.getElementById('five').style.visibility = 'hidden';
			}
			
			
			function SHowChartW(){
//document.getElementById('mypic').style.visibility = "";
MainPic2.innerHTML='<img  src ="images/sizecharti.jpg"  useMap="#FPMap60" >'

} 			
	
function SHowChartM(){
//document.getElementById('mypic').style.visibility = "";
MainPic2.innerHTML='<img  src ="images/sizechart2.jpg"  useMap="#FPMap60" >'

}




function display12(){
document.getElementById('mypic').style.visibility = "";
MainPic2.innerHTML='<img  src ="images/sizecharti.jpg"  useMap="#FPMap60" >'

}


function ClosePic(){
document.getElementById('mypic').style.visibility = "hidden";
}

function SHowChart(){
document.getElementById('mypic').style.visibility = "";
MainPic2.innerHTML='<img  src ="images/sizecharti.jpg"  useMap="#FPMap60" >'

} 



function Search(){
var varSearch = document.search.txtSearch.value
if (varSearch == 0)  {
alert('Search criteria can not be empty!');
document.search.txtSearch.focus();
return;
}

else{
document.search.submit()
}
}




function SHowShoes(){
//document.getElementById('mypic').style.visibility = "";
MainPic2.innerHTML='<img  src ="images/sizechartshoes.jpg"  useMap="#FPMap60" >'

}





function SHowChartWMes(){
MainPic2.innerHTML='<img  src ="images/diagramwom.jpg"  useMap="#FPMap60" >'

}



function SHowChartMMes(){
MainPic2.innerHTML='<img  src ="images/diagramm.jpg"  useMap="#FPMap60" >'

}


