﻿function OpenNewsletter(zURL)
	{
		//var zURL = 'http://www.skipass.co.il/snowboardform.html';
		window.open(zURL ,"Newsletter","left=100,top=60,height=350,width=580");
	 	return;
	 }	  	 
/**/

function OpenAbout()
	{
		window.open("about.htm" ,"About","status,left=100,top=60,height=300,width=440");
	 	return;
	 }	  	 
/**/

function UsersOnly()
{
	alert('הגישה לדף זה לגולשים רשומים בלבד');
}

function DisplayPhoto(PhotoURL)
{
var strURL = "Display_Photo.cfm?Photo=" + PhotoURL
//alert(strURL);
window.open(strURL,'Display_Photo','scrollbars=no,left=50,top=50,width=420,height=370,');
}
/**/

function ForgetPassword()
{
window.open('ForgetPassword.cfm','ForgetPassword','scrollbars=NO,status,left=100,top=100,width=330,height=250,');
return;
}
/**/

function PrintSkiSite(SkiSiteID)
{
	var strURL = 'SkiSite_Print.cfm?SkiSiteID=' + SkiSiteID;
	window.open(strURL,'Print_SkiSite','scrollbars=yes,left=100,top=100,width=700,height=600,');
}
/**/
function SendSkiSite(SkiSiteID)
{
	var strURL = 'SkiSite_Send.cfm?SkiSiteID=' + SkiSiteID;
	window.open(strURL,"Send_SkiSite","left=100,top=100,height=300,width=350");
}

/**/
/**/
function PrintArticle(ArticleID)
{
	var strURL = 'Article_Print.cfm?ArticleID=' + ArticleID;
	window.open(strURL,'Print_Article','scrollbars=yes,left=100,top=100,width=700,height=600,');
}
/**/
function PrintSkiSite(SkiSiteID,Country)
{
	var strURL = 'SkiSite_Print.cfm?SkiSiteID=' + SkiSiteID + "&Country=" + Country;
	window.open(strURL,'Print_SkiSite','scrollbars=yes,left=100,top=100,width=600,height=600,');
}
/**/
function SendArticle(ArticleID)
{
	var strURL = 'Article_Send.cfm?ArticleID=' + ArticleID;
	window.open(strURL,"Send_Article","left=100,top=100,height=300,width=350");
}
/**/
function SendSkiSite(SkiSiteID,Country)
{
	var strURL = 'SkiSite_Send.cfm?SkiSiteID=' + SkiSiteID + "&Country=" + Country;
	window.open(strURL,"Send_Article","left=100,top=100,height=300,width=350");
}
/**/
function LargePhotoInPage(PhotoBy,PhotoTitle,DateTaken,PhotoFullURL)
{
	var strPhotoURL = '<img src="' + PhotoFullURL + '" hspace="0" vspace="0" border="0" alt="">'
	document.getElementById("LargePhotoDiv").innerHTML = strPhotoURL;
	document.getElementById("PhotoDetails").innerHTML = PhotoBy + '<br>' + PhotoTitle + '<br>' + DateTaken;

}
/**/
function OpenAspUpload(strPhotoDir)
	{
		var zURL = "AspUpload/Upload.asp?sPath=" + strPhotoDir;
		window.open(zURL ,"UploadFile","status,left=100,top=60,height=300,width=440");
	 	return;
	 }	
/**/

function OpenUpload2Gallery(strPhotoDir)
	{
		var zURL = "Upload2Gallery.cfm?sPath=" + strPhotoDir;
		window.open(zURL ,"UploadFile","status,left=100,top=60,height=300,width=440");
	 	return;
	 }	  	 
/**/

function NewResponse(ArticleID)
{
var strLink = "Response_New.cfm?ArticleID=" + ArticleID
window.open(strLink,'New_Response','scrollbars=NO,left=100,top=100,width=445,height=330,');
return;
}
/**/
function NewResponse4SkiSite(SkiSiteID,Country)
{
var strLink = "Response4SkiSite_New.cfm?SkiSiteID=" + SkiSiteID + "&Country=" + Country
window.open(strLink,'New_Response','scrollbars=NO,left=100,top=100,width=445,height=330,');
return;
}
/**/
function ShowResponseText(ResponseText,ResponseTextX)
		{
			strResponseTextBody="<table width='100%' class='text'><tr><td>" + ResponseText + "</td></tr><tr><td align='left' style='border-bottom:1px solid silver;'><a href='javascript:HideResponseText(" + '"' + ResponseTextX + '"' + ");'>CLOSE</a></td></tr></table>"  
			
			document.getElementById(ResponseTextX).innerHTML = strResponseTextBody;
		}
/**/
function HideResponseText(ResponseTextX)
		{
			//strResponseTextBody="<table width='100%' class='text'><tr><td>" + ResponseText + "</td></tr><tr><td align='left' style='border-bottom:1px solid silver;'><a href='javascript:HideResponseText(" + ResponseTextX + ");'>CLOSE</a></td></tr></table>"  
			//alert(ResponseTextX);
			document.getElementById(ResponseTextX).innerHTML = "";
		}		
/**/		
function fav()
{
var link = "http://www.snowboards.co.il";
var title = "פורטל הסנובורד הישראלי"; 
if(document.all)
window.external.AddFavorite(link,title)
}

function make_homepage(name)
{
browserName=navigator.appName;browserVer=parseInt(navigator.appVersion);version="other";
if ((browserName=="Microsoft Internet Explorer" && browserVer>=4) && (navigator.appVersion.indexOf('5.')>-1)) version="IE5";
/* IE Version 5 browser URL */
if (version=="IE5")
	{
name.style.behavior='url(#default#homepage)';name.setHomePage(location.href);name.href = "http://www.snowboards.co.il";
	}
}
/**/
function OpenContactForm()
	{window.open("ContactForm.htm","ContactForm","scrollbars=NO,left=100,top=100,height=450,width=600");
	 return;}
/**/
function ShowPictureL(strUrl)
{
	window.open(strUrl,"LargePicture","status,left=0,top=0,height=250,width=300");
	return;}
/**/
function OpenTellAfriend()
	{window.open("TellAfriend.cfm","TellAfriend","left=100,top=100,height=250,width=350");
	 return;}

/**/
function OpenSmartForum()
	{window.open("SmartForum/index.cfm","SmartForum","left=100,top=100,height=800,width=600");
	 return;}

/**/
function ViewLetter(FullFileName)
	{
	window.open("OriginalPicture.cfm?FullFileName=" + FullFileName,"OriginalPicture","status=0,left=1,top=1,height=520,width=620");
	 return;}

/**/

function OpenOriginalPicture(FullFileName)
	{window.open("../../OriginalPicture.cfm?FullFileName=" + FullFileName,"OriginalPicture","status=0,left=1,top=1,height=340,width=430");
	 return;}
/**/ 

function OpenSmartWin(strUrl)
{
	//alert(strUrl);
	window.open(strUrl,"SmartWindow","status,left=100,top=30,height=400,width=600");
}
/**/

	
