



// -------------------------------------------------------------------

function ClrSearch(){

	document.forms["searchform"].strSearch.value = ""
	return false;
}
// -------------------------------------------------------------------

function showVideo(){

	strURL = "videowin.asp"
	strWin = "VideoWindow"
	strFeatures = "width=358, height=327, top=100, left=300"
	window.open(strURL, strWin, strFeatures)


}
// -------------------------------------------------------------------

function DoSearch(){


  if(document.forms["searchform"].strSearch.value !==""){
	location.href = "products.asp?intQuery=2&strCat=&strSearch=" + document.forms["searchform"].strSearch.value
		}
	else
		{
	alert("Please enter something to search for!")
	
		}

	return false;
}

// -------------------------------------------------------------------

function oWin(url){


	window.open (url, "", "top=120, left=250, width=372,  left=200, height=347, location=no, menubar=no, address=no, toolbar=no")
	return false;

}

// -------------------------------------------------------------------

function hotspot(){

	//show link with green dot if link and page are same.

	var loc = this.name
	loc = loc.replace("default", "home") //home page must be named default.asp so replace 'default' with 'home'.

	var hotimg = "images/nav/" + loc  + "hot.jpg"

	document.images[loc].src =  hotimg
	//document.all.pagename.innerHTML=loc + " page" //remove this line before release

}

// -------------------------------------------------------------------

function winStatusMsg(OnOff, Msg){

  if(OnOff){
	window.status = Msg }
  else
	{window.status = "Welcome to McCombs Steel - Call (704)-873-7563"}

}

// -------------------------------------------------------------------

function CloseOpener(newpage){

window.open(newpage, "", "location=yes, toolbar=yes, scrollbars=yes, resizable=yes, directories=yes, status=yes, menubar=yes")

daddy = window.self;
daddy.opener = window.self;
daddy.close();
//location.replace("../default.asp")

}

function AddToJobList(strItem){


document.forms.moduserform.strJobText.innerText = document.forms.moduserform.strJobText.innerText  + " " + strItem + ","


}
function RemoveFromJobList(strItem){


document.forms.moduserform.strJobText.innerText = document.forms.moduserform.strJobText.innerText.replace(strItem + ",", "")


}

function ConfirmDelete(itemtype,itemname){


var ans = confirm("Are you sure you wish to delete " + itemtype + ": " + unescape(itemname) + " ?")
	
	if(ans)
	  {return true;}
	else
	  {return false;}


}
// -------------------------------------------------------------------


winStatusMsg(1, "Welcome to McCombs Steel - Call (704)-873-7563")