-1) {
var s = strcode.indexOf("", e);
// Add to scripts array
scripts.push(strcode.substring(s_e+1, e));
// Strip from strcode
strcode = strcode.substring(0, s) + strcode.substring(e_e+1);
}
// Loop through every script collected and eval it
for(var i=0; i " + y + "==> " + z);
//window.scrollTo(0,650); //This was done to serach results
}
}
function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
{
// code for IE7+, Firefox, Chrome, Opera, Safari
return new XMLHttpRequest();
}
if (window.ActiveXObject)
{
// code for IE6, IE5
return new ActiveXObject("Microsoft.XMLHTTP");
}
return null;
}
function get_quick_view(gemstone_id)
{
var vscroll = $(window).scrollTop() ;
var have_to_go_top=0;
if(vscroll==0)
have_to_go_top=1;
vscroll=vscroll+"px";
document.getElementById('div_overlay_quick_view').style.top=vscroll;
document.getElementById('div_overlay_quick_view').className = 'overlay';
var vscroll = $(window).scrollTop() ;
vscroll=vscroll+28;
vscroll=vscroll+"px";
document.getElementById('div_vendors').style.top=vscroll;
wdt=$("#div_vendors").width();
pos=(wdt-200)/2;
document.getElementById('div_vendors').style.left=pos+ "px";
document.getElementById('div_vendors').style.border="10px";
if(have_to_go_top==1)
setTimeout(window.scrollTo(0,0),100);
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{
alert ("Browser does not support HTTP Request");
return;
}
var url="get_quick_view.php";
url=url+"?ID="+gemstone_id+"&PartnerID=";
url=url+"&sid="+Math.random()+'&the_charset=UTF-8';
xmlhttp.onreadystatechange=stateChanged22;
xmlhttp.open("GET",url,true);
xmlhttp.setRequestHeader("Content-type", "text/html; charset=UTF-8");
xmlhttp.send(null);
}
function stateChanged22()
{
if (xmlhttp.readyState==4)
{
//document.getElementById("div_vendors").innerHTML=xmlhttp.responseText;
document.getElementById('div_vendors').style.display='block';
document.getElementById('div_vendors').innerHTML=xmlhttp.responseText;
}
}
function colorIndChange() {
if(document.forma.ColorIND.value >0 && document.forma.ToneIND.value >0 && !document.forma.SatIND.value >0) {
//Update SatIND with the posibilities of color tone
document.forma.action="fill_saturation.php";
document.forma.target="submit_iframe";
document.forma.submit()
document.forma.action="";
document.forma.target="";
}
if(document.forma.ColorIND.value >0 && document.forma.ToneIND.value >0 && document.forma.SatIND.value >0) {
last_color=document.forma.ColorIND.value;
select_color(document.forma.ToneIND.value,document.forma.SatIND.value);
}
else { //If have 1 or to 2 values display this values
c=document.forma.ColorIND.value;
t=document.forma.ToneIND.value;
s=document.forma.SatIND.value;
if(c >=9 && c <=30) {
gw_color="";
if(c>0)
gw_color+="Color: " +color_name[c];
if(t>0)
gw_color+="
Tone: " +tone_name[t];
if(s>0)
gw_color+="
Saturation: " +saturation_name_1[s];
}
else {
gw_color="";
if(c>0)
gw_color+="Color: " +color_name[c];
if(t>0)
gw_color+="
Tone: " +tone_name[t];
if(s>0)
gw_color+="
Saturation: " +saturation_name_2[s];
}
document.getElementById("color_name").innerHTML= "" + gw_color+"";
}
}
Loading... Please wait
No more results