<!-- Created on Jul 20, 2004 9:58:28 AM All FUNCTIONS HIDDEN

// REMOVE AN ITEM FOR SELLERS
function remove_item(id,name){
answer = confirm("Are you sure you want to delete item:-    \n\n" + name +" ?");
if (answer == true){

location = "./remove_item.php?item=" + id;
}
}


// SUBMIT FORM FOR HAIR TRIGGER PULL DOWN MENU'S
function submitdetails(){

document.details.submit();
}

// SUBMIT FORM FOR HAIR TRIGGER PULL DOWN MENU'S
function submitform(){
document.options_bar.submit();
}

// HAIR TRIGGER FOR ARTIST PULL DOWN MENU
function submitform3(){
document.artist.submit();
}

// SELECT ARTIST WHEN EDITING SELLER ARTISTS PROFILE
function submitform4(){
document.edit_artist.submit();
}

// OPEN A NEW WINDOW FOR FAQ
function newwindow1() 
{
if ((screen.width>=1024) && (screen.height>=768))
{
newwin=window.open('http://www.originalartsales.co.uk/faq/home.html','mywindow','width=600,height=390,left=200,top=100,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=yes,resizable=yes'); 
}
else
{
newwin=window.open('http://www.originalartsales.co.uk/faq/home.html','mywindow','width=600,height=390,left=90,top=60,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=yes,resizable=yes'); 
} 
if (window.focus) {newwin.focus()}
}

// OPEN A NEW WINDOW FOR CONTACT
function newwindow2() 
{ 
if ((screen.width>=1024) && (screen.height>=768))
{
newwin2=window.open('http://www.originalartsales.co.uk/contact/home.html','mywindow','width=600,height=390,left=200,top=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no'); 
}
else
{
newwin2=window.open('http://www.originalartsales.co.uk/contact/home.html','mywindow','width=600,height=390,left=90,top=60,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no'); 
} 
if (window.focus) {newwin2.focus()}
} 

// OPEN A NEW WINDOW FOR PRIVACY
function privacy() 
{ 
if ((screen.width>=1024) && (screen.height>=768))
{
priv=window.open('http://www.originalartsales.co.uk/faq/privacy.html','mywindow','width=600,height=400,left=200,top=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no'); 
}
else
{
priv=window.open('http://www.originalartsales.co.uk/faq/privacy.html','mywindow','width=600,height=400,left=90,top=60,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no'); 
} 
if (window.focus) {priv.focus()}
} 
// OPEN A NEW WINDOW FOR ABOUT US
function aboutus() 
{ 
if ((screen.width>=1024) && (screen.height>=768))
{
about=window.open('http://www.originalartsales.co.uk/faq/aboutus.html','mywindow','width=600,height=390,left=200,top=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no'); 
}
else
{
about=window.open('http://www.originalartsales.co.uk/faq/aboutus.html','mywindow','width=600,height=390,left=90,top=60,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no'); 
} 
if (window.focus) {about.focus()}
} 

// CHOOSE TO SELL ARTWORK OR NOT
function sellartwork(id,sell) 
{ 
location = '../confirm/order_instruction.php?pid=' + id + '&sell=' + sell;

} 

// OPEN A NEW WINDOW FOR terms
function terms() 
{
if ((screen.width>=1024) && (screen.height>=768))
{
term=window.open('http://www.originalartsales.co.uk/shopcart/terms.php','mywindow','width=600,height=390,left=200,top=100,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=yes,resizable=yes'); 
}
else
{
term=window.open('http://www.originalartsales.co.uk/shopcart/terms.php','mywindow','width=600,height=390,left=90,top=60,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=yes,resizable=yes'); 
} 
if (window.focus) {term.focus()}
}



// OPENS NEW WINDOW TO DISPLAY BUYER INFO FOR SELLERS
function newwindow3(aid) 
{ 
var id = document.aid;

var href="/gallery/buyer_info.php?aid="+aid;
if ((screen.width>=1024) && (screen.height>=768))
{
newwindow=window.open(href,'mywindow','width=450,height=400,left=200,top=100,toolbar=no,location=no,dependant=1,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes'); 
}
else
{
newwindow=window.open(href,'mywindow','width=450,height=400,left=90,top=60,toolbar=no,location=no,dependant=1,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes'); 
} 
if (window.focus) {newwindow.focus()}
} 

// OPENS NEW WINDOW FOR SUBMITTING A QUESTION
function newwindow4(oid) 
{ 
var id = document.oid;

var href="/gallery/submit_question.php?pid="+oid;
if ((screen.width>=1024) && (screen.height>=768))
{
newwindow=window.open(href,'mywindow','width=340,height=180,left=320,top=230,toolbar=no,location=no,dependant=1,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes'); 
}
else
{
newwindow=window.open(href,'mywindow','width=340,height=180,left=90,top=60,toolbar=no,location=no,dependant=1,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes'); 
} 
if (window.focus) {newwindow.focus()}
}

// AUTOMATICALLY PRINT OFF THE BUYER INFO
function printbuyerinf()
{
if (window.print) self.print();
else if (navigator.appName.indexOf('Microsoft') !=-1) VBPrint()
setTimeout('self.close()',3000);
}

// SUBMIT THE WORD SEARCH FOR BOTH PRINTS AND OA
function submitform2(){

var problem = '0';
search_text=document.search.string.value;
if (search_text.length > "2") {
invalidChars = " /:,;<\'>\"\t\r\b\n\f.[]{}?@|^*&"
	
			for (i=0; i<invalidChars.length; i++) {	
				badChar = invalidChars.charAt(i)
				if (search_text.indexOf(badChar,0) > -1) {
					problem='1';
				}
			}
if (problem == '0') {
document.search.submit();
}
else {
alert("The word you have entered is not a valid search.\nPlease enter a single word to search.");
}
}
else
alert("Please enter a word of 3 or more letters to search.");
}


// SETS UP HOVER BUTTONS FOR MAIN HEADER

if (document.images)
{
homeoff=new Image();
homeoff.src = "/images/homeoff.gif";
homeon =new Image();
homeon.src = "/images/homeon.gif";

originaloff=new Image();
originaloff.src = "/images/originaloff.gif";
originalon = new Image();
originalon.src = "/images/originalon.gif";

printsoff=new Image();
printsoff.src = "/images/printsoff.gif";
printson = new Image();
printson.src = "/images/printson.gif";

framesoff=new Image();
framesoff.src = "/images/faqoff.gif";
frameson = new Image();
frameson.src = "/images/faqon.gif";

shopcartoff=new Image();
shopcartoff.src = "/images/shopcartoff.gif";
shopcarton = new Image();
shopcarton.src = "/images/shopcarton.gif";
}

// HOVER BUTTON ON
function On(imageName)
{
if (document.images)
{
document[imageName].src = eval(imageName+"on.src");
}
}

// HOVER BUTTON OFF
function Off(imageName)
{
if (document.images)
{
document[imageName].src = eval(imageName+"off.src");
}
}

-->


