
//var theaction = firstdirprm+"/ActionNet/PGsd.aspx"
//var retMsg=HebRetMsg
var queryResult;
var mailto='keren@matach24.com';
//keren@matach24.com'

function ForgotPassword(un,em)
{
	var theaction = pathActionDLL+"ForgotPassSubmit.dll"
	var doc=document
	doc.open();
	doc.write("<html>");
	doc.write("<body>");
	doc.write("<FORM method='post' ACTION=" + theaction + " id=form1 name=form1>");
	doc.write("<input type='text' name='uname' value="+un+">");
	doc.write("<input type='text' name='email' value="+em+">");
	doc.write("</form>");
	doc.write("</body>");
	doc.write("</html>");
	doc.close();
	doc.forms[0].submit()
}
function send_details(name,phone,email,strId)
{
	var doc=document
	doc.open();
	doc.write("<html>");
	doc.write("<body>");
	doc.write("<FORM method='post' ACTION=" + theaction + " id=form1 name=form1>");
	doc.write("<input type='text' name='name' value='"+name+"'>");
	doc.write("<input type='text' name='phone' value='"+phone+"'>");
	doc.write("<input type='text' name='email' value='"+email+"'>");
	doc.write("<input type='text' name='mailTo' value='"+mailto+"'>");//oz@forexmanage.com
	doc.write("<input type='text' name='strId' value=''>");
	
	doc.write("</form>");
	doc.write("</body>");
	doc.write("</html>");
	doc.close();
	doc.forms[0].submit()

		alert("Thank's, we  will return to you soon.")

	document.location=document.location.href

}

function send_Fdetails(name,lastname,adress,city,state,zip,country,phone,email,where,strId)
{
	var doc=document
	doc.open();
	doc.write("<html>");
	doc.write("<body>");
	doc.write("<FORM method='post' ACTION=" + theaction + " id=form1 name=form1>");
	doc.write("<input type='text' name='name' value='"+name+"'>");
	doc.write("<input type='text' name='phone' value='"+phone+"'>");
	doc.write("<input type='text' name='email' value='"+email+"'>");
	doc.write("<input type='text' name='mailTo' value='"+mailto+"'>");//keren@matach24.com
	doc.write("<input type='text' name='strId' value='"+strId+"'>");
	doc.write("<input type='text' name='lastname' value='"+lastname+"'>");
	doc.write("<input type='text' name='adress'  value='"+adress+"'>");
	doc.write("<input type='text' name='city' value='"+city+"'>");
	doc.write("<input type='text' name='zip' value='"+zip+"'>");
	doc.write("<input type='text' name='country' value='"+country+"'>");
	doc.write("<input type='text' name='where' value='"+where+"'>");
	
	doc.write("</form>");
	doc.write("</body>");
	doc.write("</html>");
	doc.close();
	doc.forms[0].submit()

		alert("Thank's, we  will return to you soon.")

}
/**
function loginonsubmit(un,p,efromwhere,TempKey) 
{
	var theaction 
	switch (efromwhere)
	{
	case 'prm':
			theaction=pathActionNet+"PgOKSubmit.aspx";
			break;
		case 'tol':
			theaction=pathActionNetSSL+"PgOKSubmit.aspx";
			break;
		case 'mfm':
			theaction=pathActionNet+"PgOKSubmit.aspx"
			break;
	}
	var thisday=getdate() ;

var sTempKey = null
	sTempKey = TempKey;
	if(sTempKey==undefined) sTempKey='null';
	
	var doc=document
	doc.open();
	doc.write("<html><body>");
	doc.write("<FORM method='post' ACTION=" + theaction + " id=form1 name=form1 target='queryResult'>");
	doc.write("<input type='text' name='epassword' value="+p+">");
	doc.write("<input type='text' name='eusername' value="+un+">");
	doc.write("<input type='text' name='efromwhere' value="+efromwhere+">");	
	doc.write("<input type='text' name='thisday' value='"+thisday+"'>");
	doc.write("<input type='text' name='TempKey' value='"+sTempKey+"'>");
	//doc.write("<input type='text' name='thisUTC' value="+thisUTC+">");
	doc.write("</form>");
	doc.write("</body></html>");
	doc.close();
	doc.forms[0].submit();
}

function loginonsubmit(un,p,efromwhere,TempKey) 
{
	pathActionNet = "https://olt.matach24.com/FXM/"
	var theaction 
	switch (efromwhere)
	{
	case 'prm':
			theaction=pathActionNet+"PgOKSubmit.aspx";
			break;
		case 'tol':
			theaction=pathActionNetSSL+"PgOKSubmit.aspx";
			break;
		case 'mfm':
			theaction=pathActionNet+"PgOKSubmit.aspx"
			break;
	}
	var thisday=getdate() ;

	var sTempKey = null
	sTempKey = TempKey;
	if(sTempKey==undefined) sTempKey='null';


	
	var doc=parent.frames[1].document;
	doc.open();
	doc.write("<html><body>");
	doc.write("<FORM method='post' ACTION=" + theaction + " id=form1 name=form1>");
	doc.write("<input type='text' name='epassword' value="+p+">");
	doc.write("<input type='text' name='eusername' value="+un+">");
	doc.write("<input type='text' name='efromwhere' value="+efromwhere+">");	
	doc.write("<input type='text' name='thisday' value='"+thisday+"'>");
	doc.write("<input type='text' name='TempKey' value='"+sTempKey+"'>");
	doc.write("<input type='text' name='Redirect' value=1>");
	doc.write("</form>");
	doc.write("</body></html>");
	doc.close();
	doc.forms[0].submit();
	setTimeout("parent.location = 'index.htm'",12000);
	
}
*/

function closeQuery(){
	self.close();
}

function loginonsubmit(un,p,efromwhere,TempKey) 
{
	var theaction 
	switch (efromwhere)
	{
		case 'prm':
			theaction=pathActionNet+"PgOKSubmit.aspx";
			break;
		case 'tol':
			theaction=pathActionNetSSL+"PgOKSubmit.aspx";
			break;
		case 'mfm':
			theaction=pathActionNet+"PgOKSubmit.aspx"
			break;
	}
	var thisday=getdate() ;

var sTempKey = null
	sTempKey = TempKey;
	if(TempKey){ 
		sTempKey='null';
	}
	
	//var doc=parent.frames[1].document
	var	Pwidth=0;
	var	Pheight=0;
	queryResult=window.open("blank.htm","window","width="+10+",height="+10+",scrollbars,top="+Pheight+",left="+Pwidth);
	//queryResult=window.open("blank.htm","window","");
	//doc.focus();
	//doc.open();
	if(queryResult){
		queryResult.opener.focus();
		queryResult.document.write("<html><body>");
		queryResult.document.write("<br><Br><Br>");
		queryResult.document.write("<FORM method='post' ACTION=" + theaction + " id=form1 name=form1>");
		queryResult.document.write("<input type='text' name='epassword' value="+p+">");
		queryResult.document.write("<input type='text' name='eusername' value="+un+">");
		queryResult.document.write("<input type='text' name='efromwhere' value="+efromwhere+">");	
		queryResult.document.write("<input type='text' name='thisday' value='"+thisday+"'>");
		queryResult.document.write("<input type='text' name='TempKey' value='"+sTempKey+"'>");
		queryResult.document.write("<input type='text' name='Redirect' value=1>");
		//doc.write("<input type='text' name='thisUTC' value="+thisUTC+">");
		queryResult.document.write("</form>");
		queryResult.document.write("</body></html>");
		//doc.close();
		//doc.forms[0].submit();
		queryResult.document.forms[0].submit();
		setTimeout("queryResult.close()",10000);
	}
	else{
		location="inner.asp?id=popup_err";
	}
}