


function launchpdf() {
	open('http://www.adobe.com/products/acrobat/readstep.html', 'acroread', 'resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=700, height=400') 
}

function show_picture(image_source, image_width, image_height, image_caption) {
	var doc_header = '<HTML><TITLE>East West Resource Corporation - &#09 '+image_caption+' &#09 </TITLE><BODY bgcolor="#e8e8e8" text="black"><P ALIGN="CENTER">'
	var doc_footer = '<p ALIGN="CENTER"><FORM><CENTER><INPUT TYPE="button" VALUE="Close this window and return to the main East West window" onclick="javascript:new Function(self.close())"></CENTER></FORM></p></BODY></HTML>'
	var image_code1 = '<img align="center" border="0" hspace="0" vspace="0" '
	var image_code2 = 'width="'+image_width+'" '
	var image_code3 = 'height="'+image_height+'" '
	var image_code4 = 'alt="'+image_caption+'" '
	var image_code5 = 'src="'+image_source+'">'
	var image_code6 = '<H2><p align="center">'+image_caption+'<br>&nbsp</p></H2>'
	window_height = screen.height*.95
	window_width = Math.min(image_width + 50, screen.width-2)
	var top_left_x = (screen.width - window_width) /2
	windowprops = "height="+window_height+",width="+window_width+",location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes"
	picture_window = window.open("", "picture_window", windowprops)
	picture_window.moveTo(top_left_x, 1)
	picture_window.resizeTo(window_width, window_height)
	picture_window.document.open()
	picture_window.document.write(doc_header)
	picture_window.document.write(image_code1)
	picture_window.document.write(image_code2)
	picture_window.document.write(image_code3)
	picture_window.document.write(image_code4)
	picture_window.document.write(image_code5)
	picture_window.document.write(image_code6)
	picture_window.document.write(doc_footer)
	picture_window.document.close()
	picture_window.focus()
}

function show_pdf(pdf_source) {
	window_height = screen.height*.95
	window_width = Math.min(800 + 50, screen.width-2)
	var top_left_x = (screen.width - window_width) /2
	windowprops = "height="+window_height+",width="+window_width+",location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes"
	pdf_window = window.open(pdf_source, "pdf_window", windowprops)
	pdf_window.moveTo(top_left_x, 1)
	pdf_window.resizeTo(window_width, window_height)
}

function pge(event) {
	show_tip(event, 'PGE = Platinum Group Elements.<BR>&nbsp;<BR><I>Click this link for more information</I>.')
}

function subscribeform() {

str_name = document.form_subscribe.subscriber_name.value
str_address = document.form_subscribe.subscriber_address.value


      if (str_name == "" || str_name == "Name") {
         alert("Insufficient data entered. \n\nYou asked us to add your name to our maillist but you didn't input your name.  Please enter your name.");
         document.form_subscribe.subscriber_name.focus();
         return false;
      } 

      if (str_address == "" || str_address == "E-mail address") {
         alert("Insufficient data entered. \n\nYou asked us to add your name to our maillist but you didn't input your e-mail address.  Please enter your e-mail address.");
         document.form_subscribe.subscriber_address.focus();
         return false;
      } 

	  return true;
	  
}

function searchform() {

str_text = document.x_form_search.SearchText.value


      if (str_text == "") {
         alert("Insufficient data entered. \n\nPlease enter some text to search for.");
         document.x_form_search.SearchText.focus();
         return false;
      } 

	  return true;
	  
}









