function validate(formCheck) //Function with a parameter representing a form name.{	sFileSelected = formCheck.filesent.value.toUpperCase();	iNameLen = sFileSelected.length;	if (sFileSelected.substr(iNameLen - 4, 4) == ".GIF")	{		alert("A image file of GIF type is not supported!");		formCheck.filesent.focus();		return false;	}	return true;}function saveStamp(myStamp) {	if(myStamp != null) {				if (parent) {			if (parent.document.stampfm) {				parent.document.stampfm.stampName.value = myStamp;			}			else {				bInvalidState = true;				sWhere = "Invalid parent.document.stampfm";			}		}		else {			bInvalidState = true;			sWhere = "Invalid parent";		}	}}function MM_findObj(n, d) { //v4.0  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && document.getElementById) x=document.getElementById(n); return x;}function MM_blockNoneLayers() { //v3.0  var i,p,m,obj,args=MM_blockNoneLayers.arguments;  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { m=args[i+2];    if (obj.style) { obj=obj.style; m=(m=='block')?'block':(m='none')?'none':m; }    obj.display=m; }}function Send(){	if (document.all){			MM_blockNoneLayers('step1','','none');			MM_blockNoneLayers('uploading','','block');}	document.stampfm.action='/brand/filesave.asp';	document.stampfm.method='post';	document.stampfm.submit();}
