// JavaScript Document
function remName(a, b){  
if(a.value==b){  
a.value='';  
}else if(a.value==''){  
a.value=b;  
}else{  
a.value=a.value;  
}  
}  
   
function chkName(a, b){  
if(a.value==''){  
a.value=b;  
}else{  
a.value=a.value;  
}  
}
function openPrettyWindow (url) {
	jQuery.prettyPhoto.open(url);
}
function openCartWindow (url) { 
jQuery.prettyPhoto.open(url + '?iframe=true&width=760&height=440');
}
function openCartProduct (url,id) { 
jQuery.prettyPhoto.open(url + '?new=' + id + '&iframe=true&width=760&height=440');
}
function linkActive (id,prevPage) {
		$('#' + id ).css({ 'background-color': '#e5e5e5'});
	    document.getElementById(prevPage).setAttribute("id", id);
		$('#' + prevPage ).css({ 'background-color': '#ffffff'});
}
