<!--
//opens a new popup window containing the page from parameter "url":
var newWin;
function OpenWin(url,title,w,h){
	w=parseInt(w);
	h=parseInt(h);
	if (!mac) if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin=window.open(url,title,"width="+w+",height="+h+",top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,z-lock=yes");
	//if (mac) win.resizeTo(w+25,h+50);
	newWin.focus();
}
function OpenWin2(url,title,w,h){
	w=parseInt(w);
	h=parseInt(h);
	if (!mac) if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin=window.open(url,title,"width="+w+",height="+h+",top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=yes,status=yes,toolbar=no,scrollbars=yes,z-lock=yes");
	//if (mac) win.resizeTo(w+25,h+50);
	newWin.focus();
}

//opens a new popup window containing the image from parameter:
var newWinImg;
function OpenImage(imgFile){
	if (new String(newWinImg)!="undefined" && newWinImg!=null) if (!newWinImg.closed) newWinImg.close();
	var newWinImg=window.open("","ProjectNewWindowImage","width=100,height=100,top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=no,menubar=no,status=no,toolbar=no,scrollbars=no,z-lock=yes");
	newWinImg.document.write('<html><head><title>Project :: New Window Image</title></head><body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" bgcolor="#ffffff" onload="window.resizeTo(parseInt(document.images[\'img\'].width)+10,parseInt(document.images[\'img\'].height)+29)"><img src="' + imgFile + '" name="img" /></body></html>');
	newWinImg.document.close();
	newWinImg.focus();
}

//used for paging:
function GoToRecNo(start){
	document.frmPaging.start.value=start;
	document.frmPaging.submit();
}

function ShowDetails(divID){
	var obj=eval('document.getElementById("'+divID+'")');
	if (obj.style.display=="" || obj.style.display=="none")
		obj.style.display="inline";
	else
		obj.style.display="none";
}

function ChangeImgResults(pictureid, newpicture){
	document.images[pictureid].src="image.aspx?img="+newpicture+"&w=160&h=160";
}

function ChangeImgContest(pictureid, newpicture){
	document.images[pictureid].src="image.aspx?img="+newpicture+"&w=160&h=160&c=1";
}

function ChangeImgWinner(pictureid, newpicture){
	document.images[pictureid].src="image.aspx?img="+newpicture+"&w=200&h=200&c=1";
}

function ChangeImgHomepage(pictureid, newpicture){
	document.images[pictureid].src="image.aspx?img="+newpicture+"&w=200&h=200&c=4";
}


function SearchMember1(searchtype){
	var frm=document.frmFind
	frm.src_act.value=searchtype
	if (searchtype=="searchhairtype" && frm.src_HairType.selectedIndex==0) {alert("Select Hair Type.");frm.src_HairType.focus();}
	else {frm.submit();}
}
function ResetSearchForm1(){
	var frm=document.frmFind
	frm.src_Category.selectedIndex=0;
	frm.src_State.selectedIndex=0;
	frm.src_City.selectedIndex=0;
	frm.src_Zipcode.value="";
	frm.src_Radius.value="";
	frm.src_HairType.selectedIndex=0;
}

function SearchMember2(searchtype){
	var frm=document.frmMemberFind
	frm.src_act.value=searchtype
	frm.submit()
}
function ResetSearchForm2(){
	var frm=document.frmMemberFind
	frm.src_Category.selectedIndex=0;
	frm.src_State.selectedIndex=0;
	frm.src_City.selectedIndex=0;
	frm.src_Zipcode.value="";
	frm.src_Radius.value="";
}

function selectAll(selectBox,selectAll) {
	// have we been passed an ID
	if (typeof selectBox == "string") {
		selectBox = document.getElementById(selectBox);
	}
	// is the select box a multiple select box?
	if (selectBox.type == "select-multiple") {
		for (var i = 0; i < selectBox.options.length; i++) {
			selectBox.options[i].selected = selectAll;
		}
	}
}

// START: rotating images in the right

var currRightRot=0;
var timerRotate;
var timer=2000;

function RotateStart(){
	timerRotate=setTimeout("RotateRight360()",timer);
}
function RotateRight360(){
	if (currRightRot<arrRightRot.length-1) currRightRot++;
	else currRightRot=0;
	ChangeRotImage("picRightRot",arrRightRot[currRightRot]);
	timerRotate=setTimeout("RotateRight360()",timer);
}
function ChangeImgOver(ind){
	currRightRot=ind;
	ChangeRotImage("picRightRot",arrRightRot[ind]);
	clearTimeout(timerRotate);
}
function ChangeRotImage(pictureid, newpicture){
	if (ie55) document.images[pictureid].filters[0].apply()
	document.images[pictureid].src="image.aspx?img="+newpicture+"&w=150&h=150&c=2";
	if (ie55) document.images[pictureid].filters[0].play()
}
/*
function PrevImageRightRot(arr){
	if (currRightRot-1>=0) {
		ChangeRotImage('picRightRot',arr[currRightRot-1]);
		currRightRot=currRightRot-1;
	}
}
function NextImageRightRot(arr){
	if (currRightRot+1<=arr.length-1) {
		ChangeRotImage('picRightRot',arr[currRightRot+1]);
		currRightRot=currRightRot+1;
	}
}
*/

/*
function ChangeRotImageOver(imgIndex){
	//document.images[pictureid].src="image.aspx?img="+newpicture+"&w=150&c=2";
	//fadearray[0].curcanvas="canvas0_0"
	//fadearray[0].mouseovercheck=1
	fadearray[0].curimageindex=imgIndex
	fadearray[0].nextimageindex=imgIndex+1
	fadearray[0].mouseovercheck=1
	fadearray[0].populateslide(fadearray[0].curcanvas,fadearray[0].curimageindex)
}
function ChangeRotImageOut(pictureid, newpicture){
	fadearray[0].mouseovercheck=0
}
*/

// END: rotating images in the right


//-->
